package Polymorphism;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("猫",12);
        Dog dog = new Dog("狗",10);
        cat.eat("猫");
        dog.eat("狗");
    }

}
